<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="150">
            <div style="width: 1200px;margin: 0 auto;">
                <img src="../../boot1/src/main/resources/static/imgs/logo.png" style="width: 300px;vertical-align: middle">
                <a href="">首页</a>
                <a href="">热点咨询</a>
                <a href="">商家入驻</a>
                <a href="">社会招聘</a>
                <a href="">校园招聘</a>
                <a href="">帮助</a>
            </div>
            <!--导航菜单开始-->
            <div>
                <el-menu
                        :default-active="1"
                        class="el-menu-demo"
                        mode="horizontal"
                        background-color="#545c64"
                        text-color="#fff"
                        active-text-color="#ffd04b">
                    <el-menu-item v-for="c in categoryArr" :index="c.id">{{c.name}}</el-menu-item>
                    <!--搜索框开始-->
                    <div style="float: right;margin-top: 10px">
                        <el-input placeholder="请输入搜索内容">
                            <el-button slot="append" icon="el-icon-search"></el-button>
                        </el-input>
                    </div>
                    <!--搜索框结束-->
                </el-menu>
            </div>
            <!--导航菜单结束-->
        </el-header>
        <!--MAIN-->
        <el-main>
            <!--m1.轮播图开始-->
            <el-row>
                <el-col :span="15">
                    <el-carousel trigger="click" height="300px">
                        <el-carousel-item v-for="item in pic" >
                            <img :src="item" width="100%">
                        </el-carousel-item>
                    </el-carousel>
                    </template>
                </el-col>
                <!--m1.轮播图结束-->
                <!--m2.排行榜开始-->
                <el-col :span="6">
                    <el-card style="height: 300px;" >
                        <h3>销量最高</h3>
                        <el-table :data="topArr" style="width: 100%;">
                            <el-table-column type="index" label="排行" width="50"></el-table-column>
                            <el-table-column property="title" label="商品名" width="80"></el-table-column>
                            <el-table-column property="saleCount" label="销量" width="80"></el-table-column>

                        </el-table>
                    </el-card>
                </el-col>
            </el-row>

            <er-row>
                <el-col :span="6" v-for="p in productArr">
                <el-card>
                    <img :src="p.url" width="100%" alt="">
                    <div>
                        <p>{{p.title}}</p>
                        <div>
                            <span>{{p.price}}</span>
                            <s style="font-size: 12px">{{p.oldPrice}}</s>
                            <span style="float: right">销量:{{p.saleCount}}</span>
                        </div>
                    </div>
                </el-card>

                </el-col>
            </er-row>
            <!--m2.排行榜结束-->

        </el-main>
        <el-footer>
            <div style="height: 95px; background-image:url(../../boot1/src/main/resources/static/imgs/ewm.jpg);margin-boottom:-30px;"> </div>
            <div>

            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return { //在这里面定义变量
                categoryArr: [
                    {id: 1, name: "精彩活动"},
                    {id: 2, name: "当季女装"},
                    {id: 3, name: "品牌男装"},
                    {id: 4, name: "环球美食"},
                    {id: 5, name: "医药健康"},
                    {id: 6, name: "美妆彩妆"}],
                pic:["imgs/b1.jpg","imgs/b2.jpg","imgs/b3.jpg","imgs/b4.jpg"],
                topArr:[
                    {title:"小米手机",saleCount:998},
                    {title:"华硕电脑",saleCount:988},
                    {title:"李宁球鞋",saleCount:888},
                    {title:"液晶显示器",saleCount:784},
                    {title:"阿迪袜子",saleCount:563},
                    {title:"耐克上衣",saleCount:445}],
                productArr:[
                    {title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342},
                    {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"imgs/b.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"imgs/c.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"imgs/d.jpg",saleCount:2342},
                    {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"imgs/e.jpg",saleCount:2342},
                    {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"imgs/f.jpg",saleCount:2342},
                    {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"imgs/g.jpg",saleCount:2342},
                    {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"imgs/h.jpg",saleCount:2342},
                    {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"imgs/i.jpg",saleCount:2342},
                    {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"imgs/j.jpg",saleCount:2342},
                    {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"imgs/k.jpg",saleCount:2342},
                    {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342}]

            }
        }
    })
</script>



</html>